import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'

import router from "@/router";
import store from "@/store";
// import Cookie from "js-cookie";

import './api/mock.js'

Vue.config.productionTip = false
Vue.use(ElementUI)



new Vue({
  render: h => h(App),
  router,
  store,
  created() {
    store.commit('addMenu', router)
  }
}).$mount('#app')
